<?php 
session_start();
if (isset($_SESSION['openid'])){
	include_once("../c/config.php");
	$mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
	if (!$mysqli->set_charset("utf8")) {printf("Error loading character set utf8: %s\n", $mysqliTwo->error);}
	$openid=$_SESSION['openid'];
	$theday=date("Y-m-d");
	$mysqli->query("insert into share(openid,theday,createtime) values('".$openid."','".$theday."','".date("Y-m-d H:i:s")."') ");
	
}
?>